package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.dto.resp.RegionRespDTO;
import com.winshare.saleAssistant.domain.entity.RegionAreaDO;
import com.winshare.saleAssistant.domain.entity.RegionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface RegionMapper {

    int  saveRegion(RegionDO regionDO);

    RegionDO getRegion(RegionDO regionDO);

    int countByRegion(RegionDO regionDO);

    int batchInsertRegionAreaList(@Param("regionAreaList")List<RegionAreaDO> regionAreaList);

    int updateRegion(RegionDO regionDO);

    int deleteRegionArea(RegionDO regionDO);

    List<RegionRespDTO> getRegionList();

    int deleteRegion(RegionDO regionDO);
}
